<HTML> <HEAD> <TITLE>foo.java</TITLE> </HEAD> <BODY> <PRE> 
<FONT COLOR=Purple>class</FONT> <FONT COLOR=ForestGreen>foo</FONT> {
  <FONT COLOR=Purple>public</FONT> <FONT COLOR=ForestGreen>void</FONT> <FONT COLOR=Blue>sum</FONT>(<FONT COLOR=ForestGreen>int</FONT>[] <FONT COLOR=DarkGoldenrod>a</FONT>) {
	<FONT COLOR=ForestGreen>int</FONT> <FONT COLOR=DarkGoldenrod>total</FONT> = 0;
	<FONT COLOR=ForestGreen>int</FONT> <FONT COLOR=DarkGoldenrod>i</FONT>=0;
	<FONT COLOR=ForestGreen>int</FONT> <FONT COLOR=DarkGoldenrod>b</FONT> = a[0];

	<FONT COLOR=Purple>for</FONT> (i=0; i&lt;a.length; i++) {
	  total += a[i];
	}
	<FONT COLOR=ForestGreen>int</FONT> <FONT COLOR=DarkGoldenrod>c</FONT> = a[i];
  }
}
</PRE> </BODY> </HTML>